home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / Windows / System32 / HTMLRE90.DLL / HTML / 11720 < prev    next >
Encoding:
Text File  |  2002-07-05  |  1.9 KB  |  86 lines

  1. <HTML>
  2. <HEAD>
  3.   <LINK REL="stylesheet" TYPE="text/css" HREF="%1css/default.css">
  4. </HEAD>
  5.  
  6. <script language="Javascript">
  7. //LOCALIZATION STRINGS
  8. var _strPromptTitle = "Please enter a title.";
  9.  
  10. var _strTitleAlert = "Please limit the title to 100 characters.";
  11. var _strDescAlert = "Please limit the description to 1024 characters.";
  12.  
  13. </script>
  14.  
  15. <SCRIPT>
  16. function doSubmitForm()
  17. {
  18.   if (document.forms.shortform.title.value == "")
  19.   {
  20.     alert(_strPromptTitle);
  21.     return;
  22.   }
  23.  
  24.   var strTitle = document.forms.shortform.title.value;
  25.   var strDesc = document.forms.shortform.desc.value;
  26.   if (strTitle.length > 100)
  27.   {
  28.      alert(_strTitleAlert);
  29.      return;
  30.   }
  31.   if (strDesc.length > 1024)
  32.   {
  33.      alert(_strDescAlert);
  34.      return;
  35.   }
  36.  
  37.   document.forms.shortform.submit();
  38. }
  39.  
  40. function relocate(url)
  41. {
  42.   window.parent.parent.location = url;
  43. }
  44. </SCRIPT>
  45.  
  46. <BODY>
  47. <form name="shortform" method="post" ACTION="%2" target="_parent">   
  48.  
  49. <table cellpadding=2 cellspacing=2>
  50.  
  51. <tr><td class="list">Title:</td><td class="list"><INPUT TYPE="TEXT" SIZE="40" NAME="title" VALUE="%3"></TD></tr> 
  52.  
  53. <TR>
  54.    <TD class="list" VALIGN="TOP">Description:</TD><TD class="list" COLSPAN="2"><TEXTAREA WRAP="virtual" NAME="desc" ROWS="7" COLS="50">%4</TEXTAREA></TD>
  55. </TR>
  56.  
  57. <tr><td class="list">Folder Path:</td><td class="list">%5</td></tr>
  58.  
  59. <tr><td class="list">Created:</td><td class="list">%6</td></tr>
  60.  
  61. <tr>
  62.     <td colspan=2 align=right>
  63.         <table cellpadding=0 border=0>
  64.             <tr>
  65.                 <td class="clsButton" align=middle nowrap>
  66.                     <div class="clsButton"> <A HREF="javascript:doSubmitForm()">Update</A> </div>
  67.                 </td>
  68.             </tr>
  69.         </table>
  70.     </td>
  71.     <td>        
  72.         <table cellpadding=0 border=0>
  73.             <tr>
  74.                 <td class="clsButton" align=middle nowrap>
  75.                 <div class="clsButton"><a href="javascript:document.shortform.reset()">Reset</a></div>
  76.                 </td>
  77.             </tr>
  78.         </table>
  79.     </td>
  80. </tr>
  81. </table>
  82.  
  83. </form>
  84. </BODY>
  85. </HTML>
  86.